package org.mall.modules.pojo.promotion.coupon;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import org.mall.common.util.jsonschema.Long2StringSerializer;
import org.mall.common.util.jsonschema.String2LongDeserialize;

import java.util.List;

/***
 *@author yinxucun
 *@date 2019-12-24 10:16 
 */
@Data
public class PersonalCouponCardVO {

    private List<CouponCardSpuVO> spuList;


     @Data
     class  CouponCardSpuVO{
        /**
         * 商品 SPU 编号
         */
        @JsonDeserialize(using = String2LongDeserialize.class)
        @JsonSerialize(using = Long2StringSerializer.class)
        private Long spuId;
        /**
         * 商品 SKU 编号
         */
        @JsonDeserialize(using = String2LongDeserialize.class)
        @JsonSerialize(using = Long2StringSerializer.class)
        private Long skuId;
        /**
         * 分类编号
         */
        private Integer categoryId;
        /**
         * 价格
         */
        private Integer price;
        /**
         * 数量
         */
        private Integer quantity;
        private String shopId;
    }

}
